{include file='header.html'}

{include file='/nav.html'}

<div class="search-form">
<form method="get" action="{$appadmin}">
<input type="hidden" name="m" value="" />
分类：    <select name="catid" class="w150">
    <option value="0">请选择</option>
    {foreach item=c from=$cat_list}
                <option value="{$c.catid}" {if get('catid') eq $c.catid} selected="selected"{/if}>{$c.cname}</option>
                {foreach item=c_2 from=$c.child}
                	<option value="{$c_2.catid}" {if get('catid') eq $c_2.catid} selected="selected"{/if} class="o_c_2">|__{$c_2.cname}</option>
                    {foreach item=c_3 from=$c_2.child}
                    <option value="{$c_3.catid}" {if get('catid') eq $c_3.catid} selected="selected"{/if} class="o_c_3"> |____{$c_3.cname}</option>
                    {/foreach}
                {/foreach}
                {/foreach}
    </select>
主题：<input type="text" name="title" value="{$smarty.get.title}" class="w200" />
<input type="submit" value="搜索" class="btn" />
</form>
</div>
<div class="rbox">
<table width="100%"  class="table table-bordered">
  <tr>
    <td width="4%" align="center">id</td>
    <td width="18%" align="center">标题</td>
    <td width="23%" align="center">分类</td>
    <td width="21%" align="center">作者</td>
    <td width="11%" align="center">时间</td>
    <td width="10%" align="center">审核通过</td>
    <td width="13%" align="center">操作</td>
  </tr>
  {foreach item=c from=$data}
  <tr>
    <td align="center">{$c.id}</td>
    <td align="center">{$c.title}</td>
    <td align="center">{$c.cname}{if $c.cname_2nd}>{$c.cname_2nd}{/if}{if $c.cname_3nd}>{$c.cname_3nd}{/if}</td>
    <td align="center">{if $c.nickname}{$c.nickname}{else}管理员{/if}</td>
    <td align="center">{$c.dateline|date:Y-m-d}</td>
    <td align="center"> 
    {if $c.status eq 2}
   <img src='{$skins}images/yes.gif' class="ajax_no" url='{$appadmin}?m=&a=ChageStatus&id={$c.id}&status=99' rurl='{$appadmin}?m=&a=ChageStatus&id={$c.id}&status=2'>
    {else}
    <img src='{$skins}images/no.gif' class="ajax_yes" url='{$appadmin}?m=&a=ChageStatus&id={$c.id}&status=2' rurl='{$appadmin}?m=&a=ChageStatus&id={$c.id}&status=99'>
    {/if}</td>
    <td align="center"><a href="index.php?m=show&id={$c.id}&model_id={$c.model_id}" target="_blank">查看</a>  <a href='{$appadmin}?m=&a=add&id={$c.id}'>编辑</a> <a href="javascript:;" class="del" url="{$appadmin}?m=&a=delete&id={$c.id}">删除</a></td>
  </tr>
  {/foreach}
 
</table>
{$pagelist}
</div>

{include file='footer.html'}